const path = require('path')
module.exports = {
  configureWebpack: function () {
    return {
      resolve: {
        extensions: ['.js', '.json'],
        alias: {
          '@': path.resolve(__dirname, './src'),
          'views': path.resolve(__dirname, './src/views')
        }
      },
      externals: {
        AMap: 'AMap'
        // 'T': 'T',
        // 'Hls': 'Hls'
        // 'Hls': 'Hls',
        // 'vue': 'Vue',
        // 'vue-router': 'VueRouter',
        // 'vuex':'Vuex',
        // 'element-ui': 'ELEMENT',
      }
    }
  },
  lintOnSave: false,
  devServer: {
    open: true,
    port: 8888,
    proxy: 'http://127.0.0.1:5000/'
    // baseUrl: './'
  }
}
